package com.ruijiang.service.TaskService.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruijiang.entity.TaskDetails;
import com.ruijiang.mapper.TaskServiceMapper.TaskDetailMapper;
import com.ruijiang.service.TaskService.TaskDetailsService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaskDetailsServiceImpl extends ServiceImpl<TaskDetailMapper,TaskDetails>implements TaskDetailsService {

    /**
     * 获取补货详情
     * @param taskId
     * @return
     */
    @Override
    public List<TaskDetails> getTaskDetailsByTaskId(String taskId) {
        LambdaQueryWrapper<TaskDetails> wrapper
                = Wrappers.<TaskDetails>lambdaQuery()
                .eq(TaskDetails::getTaskId, taskId);
        List<TaskDetails> taskDetailsList = list(wrapper);
        return taskDetailsList;
    }
}
